package com.wfg.blog.vo;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.wfg.blog.dao.pojo.Category;
import lombok.Data;

import java.util.List;

@Data
public class ArticleVo {
    //防止前端 精度丢失 把id转为string
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String title;

    //简介
    private String summary;

    private int commentCounts;

    private int viewCounts;

    private int weight;
    /**
     * 创建时间
     */
    private String createDate;

    private String author;

    private ArticleBodyVo body;

    private List<TagVo> tags;

    private CategoryVo category;



//    private List<CategoryVo> categorys;

}
